import { defineStore } from 'pinia'

export const useLanguageStore = defineStore('useLanguageStore', {
  state: () => ({
    language: 'zh'
  }),
  actions: {
    setLanguage(language) {
      this.language = language
    }
  },
  persist: {
    key: 'language'
  }
})
